This patch introduces libxl_primary_console_exec: a new libxl function
authorStefano Stabellini <sstabellini@xensource.com>
Mon, 19 Jul 2010 11:47:53 +0000 (12:47 +0100)
committerStefano Stabellini <sstabellini@xensource.com>
Mon, 19 Jul 2010 11:47:53 +0000 (12:47 +0100)
commit402ddf4b3998486715c1de515efbbf7ad32894fb
tree68f8c800e1c44817933dcd231f4e5dd6ed79ead6
parent6b331584fb3e3a6848551748607cdecb981ac74c
This patch introduces libxl_primary_console_exec: a new libxl function
that finds the domid and console number corresponding to the primary
console of a given vm. The domid might be different from the domid of
the VM and the console number might not be 0 when using stubdoms.
The caller (xl_cmdimpl.c in this case) has to make sure that the stubdom
is already created before calling libxl_primary_console_exec in the hvm
case. In the PV case libxl_primary_console_exec has to be called before
libxl_run_bootloader.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl.h
tools/libxl/xl_cmdimpl.c